<div class="wrapper">
    <include file="Public/breadcrumb"/>
    <section class="content">
        <!-- Main content -->
        <div class="container-fluid">
            <div class="pull-right">
                <a href="javascript:history.go(-1)" data-toggle="tooltip" title="" class="btn btn-default" data-original-title="返回"><i class="fa fa-reply"></i></a>
                <!--<a href="javascript:;" class="btn btn-default" data-url="http://www.tp-shop.cn/Doc/Index/article/id/1007/developer/user.html" onclick="get_help(this)"><i class="fa fa-question-circle"></i> 帮助</a>-->
            </div>
            <div class="panel panel-default">
                <div class="panel-heading">
                    <h3 class="panel-title"><i class="fa fa-list"></i>店铺详情</h3>
                </div>
                <div class="panel-body">
                    <ul class="nav nav-tabs">
                        <li class="active"><a href="#tab_tongyong" data-toggle="tab">店铺信息</a></li>
                        <li><a href="#tab_gongsi" data-toggle="tab">公司信息</a></li>
                        <php>if($goodsInfo[user_id]>0){</php>
                        <li><a href="#tab_buyer" data-toggle="tab">卖家详细信息</a></li>
                        <php>}</php>



                        <!--<li><a href="#tab_goods_tem" data-toggle="tab">商品尺寸表</a></li>-->
                        <!--<li style="display: none;"><a href="#tab_goods_shipping" data-toggle="tab">商品物流</a></li>-->
                    </ul>
                    <!--表单数据-->
                    <form method="post" id="addEditGoodsForm">

                        <php>$type_id?$goods_type=$type_id:$goods_type=$goodsInfo[goods_type];</php>
                        <input name="goods_type" id="goods_type" value="{$goods_type}" type="hidden">

                        <!--通用信息-->
                        <div class="tab-content">

                            <div class="tab-pane active" id="tab_tongyong">

                                <table class="table table-bordered">
                                    <tbody>


                                    <tr>
                                        <td>所在平台:</td>

                                        <td>
                                            <input type="text" value="京东商城"  readonly class="form-control" style="width:550px;"/>

                                        </td>
                                    </tr>


                                    </tbody>
                                </table>




                                <table   class="table table-bordered"  >
                                    <tbody>

                                    <tr >
                                        <td>商城类型:</td>
                                        <td>
                                            <select name="store_type" id="store_type"  class="form-control" style="width:250px;">
                                                <option value="0">选择注册类型</option>
                                                <foreach name="storeType_tm" item="vv2" key="kk2" >
                                                    <option value="{$kk2}"<if condition="$goodsInfo[store_type] eq $kk2"> selected="selected" </if> >{$vv2}</option>
                                                </foreach>
                                            </select>
                                        </td>
                                    </tr>


                                    <tr>
                                        <td>店铺名称:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.seller_name}" name="seller_name" id="seller_name" class="form-control" style="width:550px;"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>店铺信息标题:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.seller_title}" name="seller_title" id="seller_title" class="form-control" style="width:550px;"/>
                                        </td>
                                    </tr>


                                    <tr>
                                        <td>店铺详细描述:</td>
                                        <td>

                                            <textarea rows="6" cols="80" id="seller_describe" name="seller_describe">{$goodsInfo.seller_describe}</textarea>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>卖家寄语:</td>
                                        <td>

                                            <textarea rows="6" cols="80" id="seller_send_word" name="seller_send_word">{$goodsInfo.seller_send_word}</textarea>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>所在地区:</td>
                                        <td>
                                            <div class="form-group ">
                                                <div class="col-xs-2">
                                                    <select onchange="get_city(this)" id="province" name="province" class="form-control">
                                                        <option  value="0">选择省份</option>
                                                        <volist name="province" id="vo">
                                                            <option value="{$vo.id}" <if condition="$goodsInfo['province'] eq $vo[id]">selected="selected" </if> >{$vo.name}</option>
                                                        </volist>
                                                    </select>
                                                </div>
                                                <div class="col-xs-2">
                                                    <select onchange="get_area(this)" id="city" name="city" class="form-control">
                                                        <option value="0">选择城市</option>
                                                        <volist name="city" id="vo">
                                                            <option value="{$vo.id}" <if condition="$goodsInfo['city'] eq $vo[id]">selected="selected" </if> >{$vo.name}</option>
                                                        </volist>
                                                    </select>
                                                </div>

                                            </div>

                                        </td>
                                    </tr>
                                    <tr>
                                        <td>开店时长</td>
                                        <td>
                                            <input type="text"    value="{$goodsInfo.start_time}" style="width: 120px;"  name="start_time" id="start_time" class="form-control"  />年
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>可经营一级类目:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.epmi}" placeholder="多个类目用,隔开" name="epmi" id="epmi" class="form-control" style="width:550px;"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>当前主营</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.now_business}" placeholder="当前主营." id="now_business" name="now_business" class="form-control" style="width:350px;"/>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>商标名称:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.brand_name}" placeholder="多个用,隔开" id="brand_name"  name="brand_name" class="form-control" style="width:550px;"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>是否自有品牌:</td>
                                        <td>
                                            自有品牌:<input type="radio"  <php>if($goodsInfo[manage_type]==0){</php> checked="checked" <php>}</php>  value="0" name="manage_type" />&nbsp;&nbsp;&nbsp;
                                            代理品牌:<input type="radio" <php>if($goodsInfo[manage_type]==1){</php> checked="checked" <php>}</php>value="1" name="manage_type" />
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>商标持有者:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.brand_holder}" name="brand_holder" id="brand_holder" class="form-control" style="width:550px;"/>
                                        </td>
                                    </tr>


                                    <tr >
                                        <td>商标类型:</td>
                                        <td>
                                            <select name="brand_type" id="brand_type" class="form-control" style="width:250px;">
                                                <option value="0">选择商标类型</option>
                                                <foreach name="brandType" item="vo" key="k" >
                                                    <option value="{$k}"<if condition="$goodsInfo[brand_type] eq $k"> selected="selected" </if> >{$vo}</option>
                                                </foreach>
                                            </select>

                                        </td>
                                    </tr>

                                    <tr>
                                        <td>商标分类:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.brand_info}" placeholder="示例：1,3,5  多个用,隔开" id="brand_info" name="brand_info" class="form-control" style="width:550px;"/>
                                        </td>
                                    </tr>


                                    <tr>
                                        <td>商标持有者类型:</td>
                                        <td>
                                            公司:<input type="radio" <php>if($goodsInfo[brand_holder_type]==0){</php> checked="checked" <php>}</php>  value="0" name="brand_holder_type" />&nbsp;&nbsp;&nbsp;
                                            法人:<input type="radio" <php>if($goodsInfo[brand_holder_type]==1){</php> checked="checked" <php>}</php>  value="1" name="brand_holder_type" />&nbsp;&nbsp;&nbsp;
                                            其他人:<input type="radio" <php>if($goodsInfo[brand_holder_type]==2){</php> checked="checked" <php>}</php>  value="2" name="brand_holder_type" />&nbsp;&nbsp;&nbsp;
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>商标是否过户:</td>
                                        <td>
                                            否:<input type="radio" <php>if($goodsInfo[is_shift]==0){</php> checked="checked" <php>}</php> value="0" name="is_shift" />&nbsp;&nbsp;&nbsp;
                                            是:<input type="radio" <php>if($goodsInfo[is_shift]==1){</php> checked="checked" <php>}</php> value="1" name="is_shift" />
                                        </td>
                                    </tr>



                                    <tr>
                                        <td>特价商品:</td>
                                        <td>
                                            否:<input type="radio" <php>if($goodsInfo[is_discount]==0){</php> checked="checked" <php>}</php>  value="0" name=" is_discount" />&nbsp;&nbsp;&nbsp;
                                            是:<input type="radio" <php>if($goodsInfo[is_discount]==1){</php> checked="checked" <php>}</php>  value="1" name=" is_discount" />
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>售价</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.price}"   name="price" id="price" class="form-control" style="width:350px;"/>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>保证金</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.b_price}"   name="b_price" id="b_price" class="form-control" style="width:350px;"/>

                                            可退:<input type="radio" <php>if($goodsInfo[b_price_type]==0){</php> checked="checked" <php>}</php>   value="0" name="b_price_type" />&nbsp;&nbsp;&nbsp;
                                            不可退:<input type="radio" <php>if($goodsInfo[b_price_type]==1){</php> checked="checked" <php>}</php>  value="1" name="b_price_type" />
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>技术年费<br/> </td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.j_price}"   name="j_price" id="j_price" class="form-control" style="width:350px;"/>

                                            <!--<input type="text" value="{$goodsInfo.j_price}" onmousedown="datashow();"  id="j_price" readonly  name="j_price" class="form-control" style="width:350px;"/>-->

                                            <!--可退:<input type="radio" <php>if($goodsInfo[j_price_type]==0){</php> checked="checked" <php>}</php>  value="0" name="j_price_type" />&nbsp;&nbsp;&nbsp;-->
                                            <!--不可退:<input type="radio" <php>if($goodsInfo[j_price_type]==1){</php> checked="checked" <php>}</php>  value="1" name="j_price_type" />-->
                                        </td>
                                    </tr>

                                  <!--  <tr>
                                        <td>信用额度</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.xinyong_price}" onkeyup="value=value.replace(/[^\d]/g,'')" placeholder="信用额度" name="xinyong_price" id="xinyong_price" class="form-control" style="width:350px;"/>
                                            <span id="err_xinyong_price" style="color:#F00; display:none;"></span>
                                        </td>
                                    </tr>



                                    <tr>
                                        <td>使用中贷款</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.dk_price}" onkeyup="value=value.replace(/[^\d]/g,'')" placeholder="使用中贷款" name="dk_price" id="dk_price" class="form-control" style="width:350px;"/>
                                        </td>
                                    </tr>-->


                                    <tr>
                                        <td>违规记录</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.weigui_log}" placeholder="示例：1-2-3" name="weigui_log" id="weigui_log" class="form-control" style="width:350px;"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>动态评分</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.dongtai_score}" placeholder="示例：4.9/4.9/4.9" name="dongtai_score" id="dongtai_score" class="form-control" style="width:350px;"/>
                                        </td>
                                    </tr>











                                    <tr>
                                        <td>营业额图片:</td>
                                        <td>
                                            <input type="button" value="上传图片"  onclick="GetUploadify(1,'','goods','call_back2');"/>
                                            <input type="text" class="input-sm"  name="yingyee_img" id="yingyee_img" value="{$goodsInfo.yingyee_img}"/>
                                            <php>if($goodsInfo[yingyee_img]){</php>

                                            &nbsp;&nbsp;
                                            <a target="_blank" href="{$goodsInfo.yingyee_img}" id="yingyee_img1">
                                                <img width="25" height="25" src="/Public/images/image_icon.jpg">
                                            </a>

                                            <php>}</php>

                                        </td>
                                    </tr>
                                    <tr>
                                        <td>一级类目图片:</td>
                                        <td>
                                            <input type="button" value="上传图片"  onclick="GetUploadify(1,'','goods','call_back3');"/>
                                            <input type="text" class="input-sm"  name="yijileimu_img" id="yijileimu_img" value="{$goodsInfo.yijileimu_img}"/>
                                            <php>if($goodsInfo[yijileimu_img]){</php>
                                            &nbsp;&nbsp;
                                            <a target="_blank" href="{$goodsInfo.yijileimu_img}" id="yijileimu_img1">
                                                <img width="25" height="25" src="/Public/images/image_icon.jpg">
                                            </a>
                                            <php>}</php>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>历史扣分图片:</td>
                                        <td>
                                            <input type="button" value="上传图片"  onclick="GetUploadify(1,'','goods','call_back4');"/>
                                            <input type="text" class="input-sm"  name="lishikoufen_img" id="lishikoufen_img" value="{$goodsInfo.lishikoufen_img}"/>
                                            <php>if($goodsInfo[lishikoufen_img]){</php>
                                            &nbsp;&nbsp;
                                            <a target="_blank" href="{$goodsInfo.lishikoufen_img}" id="lishikoufen_img1">
                                                <img width="25" height="25" src="/Public/images/image_icon.jpg">
                                            </a>
                                            <php>}</php>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>续签考核图片:</td>
                                        <td>
                                            <input type="button" value="上传图片"  onclick="GetUploadify(1,'','goods','call_back5');"/>
                                            <input type="text" class="input-sm"  name="xuqiankaoke_img" id="xuqiankaoke_img" value="{$goodsInfo.xuqiankaoke_img}"/>
                                            <php>if($goodsInfo[xuqiankaoke_img]){</php>
                                            &nbsp;&nbsp;
                                            <a target="_blank" href="{$goodsInfo.xuqiankaoke_img}" id="xuqiankaoke_img1">
                                                <img width="25" height="25" src="/Public/images/image_icon.jpg">
                                            </a>
                                            <php>}</php>
                                        </td>
                                    </tr>


                                    <tr>
                                        <td>可提供证件:</td>
                                        <td>
                                            <input class="papers" type="checkbox" <php>if(in_array('身份证',$papers_arr)){</php>checked="checked"<php>}</php> value="身份证" name="papers[]" />身份证 &nbsp;&nbsp;&nbsp;
                                            <input class="papers" type="checkbox" <php>if(in_array('手持身份证',$papers_arr)){</php>checked="checked"<php>}</php> value="手持身份证" name="papers[]" />手持身份证&nbsp;&nbsp;&nbsp;
                                            <input class="papers" type="checkbox" <php>if(in_array('营业执照',$papers_arr)){</php>checked="checked"<php>}</php> value="营业执照" name="papers[]" />营业执照&nbsp;&nbsp;&nbsp;
                                            <input class="papers" type="checkbox" <php>if(in_array('手持营业执照',$papers_arr)){</php>checked="checked"<php>}</php> value="手持营业执照" name="papers[]" />手持营业执照&nbsp;&nbsp;&nbsp;

                                        </td>
                                    </tr>

                                    <tr>
                                        <td> 是否存在债务纠纷:</td>
                                        <td>
                                            无:<input type="radio" <php>if($goodsInfo[zw_status]==0){</php> checked="checked" <php>}</php>  value="0" name="zw_status" />&nbsp;&nbsp;&nbsp;
                                            有:<input type="radio" <php>if($goodsInfo[zw_status]==1){</php> checked="checked" <php>}</php>  value="1" name="zw_status" />
                                        </td>
                                    </tr>


                                    <tr>
                                        <td>朋伴跟进人员:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.gj_name}" placeholder="填写跟进人员姓名" id="gj_name" name="gj_name" class="form-control" style="width:550px;"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>月利润:</td>
                                        <td>
                                            无:<input type="radio" <php>if($goodsInfo[y_profit]==0){</php> checked="checked" <php>}</php>  value="0" name="y_profit" />&nbsp;&nbsp;&nbsp;
                                            有:<input type="radio" <php>if($goodsInfo[y_profit]==1){</php> checked="checked" <php>}</php>  value="1" name="y_profit" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>是否带货出售:</td>
                                        <td>
                                            否:<input type="radio" <php>if($goodsInfo[cum_goods]==0){</php> checked="checked" <php>}</php>  value="0" name="cum_goods" />&nbsp;&nbsp;&nbsp;
                                            是:<input type="radio" <php>if($goodsInfo[cum_goods]==1){</php> checked="checked" <php>}</php>  value="1" name="cum_goods" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td> 是否提供货源:</td>
                                        <td>
                                            否:<input type="radio" <php>if($goodsInfo[hy_status]==0){</php> checked="checked" <php>}</php>  value="0" name="hy_status" />&nbsp;&nbsp;&nbsp;
                                            是:<input type="radio" <php>if($goodsInfo[hy_status]==1){</php> checked="checked" <php>}</php>  value="1" name="hy_status" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>是否带团队转让 :</td>
                                        <td>
                                            否:<input type="radio" <php>if($goodsInfo[zrtd_status]==0){</php> checked="checked" <php>}</php>  value="0" name="zrtd_status" />&nbsp;&nbsp;&nbsp;
                                            是:<input type="radio" <php>if($goodsInfo[zrtd_status]==1){</php> checked="checked" <php>}</php>  value="1" name="zrtd_status" />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>是否授权经营经验 :</td>
                                        <td>
                                            否:<input type="radio" <php>if($goodsInfo[jyjy_status]==0){</php> checked="checked" <php>}</php>  value="0" name="jyjy_status" />&nbsp;&nbsp;&nbsp;
                                            是:<input type="radio" <php>if($goodsInfo[jyjy_status]==1){</php> checked="checked" <php>}</php>  value="1" name="jyjy_status" />
                                        </td>
                                    </tr>



                                    <!--<tr>-->
                                    <!--<td>店铺详细地址</td>-->
                                    <!--<td>-->
                                    <!--<input type="text" value="{$goodsInfo.address}" id="address" name="address" class="form-control" style="width:350px;"/>-->
                                    <!--</td>-->
                                    <!--</tr>-->
                                 <!--   <tr >
                                        <td>店铺类型:</td>
                                        <td>
                                            <select name="store_type" id="store_type"   class="form-control" style="width:250px;">
                                                <option value="0">选择店铺类型</option>
                                                <foreach name="storeType_tm" item="vv1" key="kk1" >
                                                    <option value="{$kk1}"<if condition="$goodsInfo[store_type] eq $kk1"> selected="selected" </if> >{$vv1}</option>
                                                </foreach>
                                            </select>
                                        </td>
                                    </tr>-->




                                    <tr>
                                        <td>所属行业:</td>

                                        <td>
                                            <select name="trade_type" id="trade_type" class="form-control" style="width:250px;">
                                                <option value="0">选择所属行业</option>
                                                <foreach name="goodsTrade" item="vo1" key="k1" >
                                                    <option value="{$k1}"<if condition="$goodsInfo[trade_type] eq $k1"> selected="selected" </if> >{$vo1}</option>
                                                </foreach>
                                            </select>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>所在地区:</td>
                                        <td>
                                            <select name="area_type" id="area_type" class="form-control" style="width:250px;">
                                                <option value="0">选择所在地区</option>
                                                <foreach name="goodsArea" item="vo2" key="k2" >
                                                    <option value="{$k2}"<if condition="$goodsInfo[area_type] eq $k2"> selected="selected" </if> >{$vo2}</option>
                                                </foreach>
                                            </select>


                                        </td>
                                    </tr>
                                    <tr>
                                        <td>价格区间:</td>
                                        <td>
                                            <select name="price_type" id="price_type" class="form-control" style="width:250px;">
                                                <option value="0">选择价格区间</option>
                                                <foreach name="priceType" item="vo3" key="k3" >
                                                    <option value="{$k3}"<if condition="$goodsInfo[price_type] eq $k3"> selected="selected" </if> >{$vo3}</option>
                                                </foreach>
                                            </select>


                                        </td>
                                    </tr>

                                    <tr>
                                        <td>标签:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.label}" placeholder="多个用,隔开" name="label" id="label" class="form-control" style="width:350px;"/>
                                        </td>
                                    </tr>


                                    </tbody>
                                </table>








                            </div>


                            <div class="tab-pane  " id="tab_gongsi">

                                <table class="table table-bordered">
                                    <tbody>
                                    <tr>
                                        <td>公司名称:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.company_name}" name="company_name" id="company_name" class="form-control" style="width:550px;"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>注册时间:</td>
                                        <td>
                                            <input type="text"    value="{$goodsInfo.company_reg_time}"  style="width: 120px;" id="company_reg_time" name="company_reg_time" class="form-control"  />年
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>注册资金:</td>
                                        <td>
                                            <input type="text"   onkeyup="value=value.replace(/[^\d]/g,'')" style="width: 120px;"   value="{$goodsInfo.reg_money}"  name="reg_money" id="reg_money" class="form-control" style="width:550px;"/>万元
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>公司法人:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.company_legal_per}" name="company_legal_per" id="company_legal_per" class="form-control" style="width:550px;"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>纳税人资质:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.taxpayer_qualification}" id="taxpayer_qualification"  name="taxpayer_qualification" class="form-control" style="width:550px;"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>年报状态:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.annals_info}" name="annals_info" id="annals_info" class="form-control" style="width:550px;"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>股东人数:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.shareholder_num}"  name="shareholder_num" id="shareholder_num" class="form-control" style="width:120px;"/>人
                                        </td>
                                    </tr>



                                    <tr>
                                        <td>经营状态:</td>
                                        <td>
                                            正常:<input type="radio" <php>if($goodsInfo[jy_status]==0){</php> checked="checked" <php>}</php>  value="0" name="jy_status" />
                                            异常:<input type="radio" <php>if($goodsInfo[jy_status]==1){</php> checked="checked" <php>}</php>  value="1" name="jy_status" />
                                        </td>
                                    </tr>



                                    <tr>
                                        <td>税务状态:</td>
                                        <td>
                                            正常:<input type="radio" <php>if($goodsInfo[cw_status]==0){</php> checked="checked" <php>}</php>  value="0" name="cw_status" />
                                            异常:<input type="radio" <php>if($goodsInfo[cw_status]==1){</php> checked="checked" <php>}</php> value="1" name="cw_status" />
                                        </td>
                                    </tr>




                                    </tbody>
                                </table>
                            </div>


                            <div class="tab-pane" id="tab_buyer">
                                <table class="table table-bordered">
                                    <tbody>
                                    <tr>
                                        <td>用户id</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.user_id}" readonly name="user_id" class="form-control" style="width:550px;"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>用户名:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.user_id|get_user_name}" readonly  class="form-control" style="width:550px;"/>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>电话:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.user_id|get_user_mobile}" readonly  class="form-control" style="width:550px;"/>
                                        </td>
                                    </tr>


                                    <tr>
                                        <td>预售价格:</td>
                                        <td>
                                            <input type="text" value="{$goodsInfo.ys_price}" readonly  class="form-control" style="width:550px;"/>
                                        </td>
                                    </tr>



                                    </tbody>
                                </table>
                            </div>









                        </div>
                        <div class="pull-right">
                            <input type="hidden" name="goods_id" value="{$goodsInfo.goods_id}">
                            <!--<button class="btn btn-primary" onclick="ajax_submit_form('addEditGoodsForm','{:U('Goods/addEditGoods?is_ajax=1')}');" title="" data-toggle="tooltip" type="button" data-original-title="保存">保存</button>-->
                            <button class="btn btn-primary" onclick="submit_form('addEditGoodsForm','{:U('Goods/addEditGoods?is_ajax=1')}');" title="" data-toggle="tooltip" type="button" data-original-title="保存">保存</button>
                        </div>
                    </form>
                    <!--表单数据-->
                </div>
            </div>
        </div>    <!-- /.content -->
    </section>
</div>


<script>


    function datashow()
    {
        $('#j_price').daterangepicker({
            format:"YYYY/MM/DD",
            singleDatePicker: true,
            showDropdowns: true,
            minDate:'2001/01/01',
            maxDate:'2030/01/01',
            startDate:'2010/01/01',
            locale : {
                applyLabel : '确定',
                cancelLabel : '取消',
                fromLabel : '起始时间',
                toLabel : '结束时间',
                customRangeLabel : '自定义',
                daysOfWeek : [ '日', '一', '二', '三', '四', '五', '六' ],
                monthNames : [ '一月', '二月', '三月', '四月', '五月', '六月','七月', '八月', '九月', '十月', '十一月', '十二月' ],
                firstDay : 1
            }
        });
    }



    function submit_form(form_id,url){



        if($('#seller_name').val()==''){ layer.alert('店铺名不能为空', {icon: 2});$('#seller_name').focus();return false;}
        if($('#seller_title').val()==''){ layer.alert('标题不能为空', {icon: 2});$('#seller_title').focus();return false;}
        if($('#seller_describe').val()==''){ layer.alert('描述不能为空', {icon: 2});$('#seller_describe').focus();return false;}
        if($('#seller_send_word').val()==''){ layer.alert('买家寄语不能为空', {icon: 2});$('#seller_send_word').focus();return false;}
        if($('#start_time').val()==''){ layer.alert('开店时长不能为空', {icon: 2});$('#start_time').focus();return false;}
        if($('#epmi').val()==''){ layer.alert('可经营一级类目不能为空', {icon: 2});$('#epmi').focus();return false;}
        if($('#now_business').val()==''){ layer.alert('当前主营不能为空', {icon: 2});$('#now_business').focus();return false;}
        if($('#brand_name').val()==''){ layer.alert('商标名称不能为空', {icon: 2});$('#brand_name').focus();return false;}
        if($('#brand_holder').val()==''){ layer.alert('商标持有者不能为空', {icon: 2});$('#brand_holder').focus();return false;}
        if($('#brand_info').val()==''){ layer.alert('商标分类不能为空', {icon: 2});$('#brand_info').focus();return false;}
        if($('#price').val()==''){ layer.alert('售价不能为空', {icon: 2});$('#price').focus();return false;}
        if($('#b_price').val()==''){ layer.alert('保证金不能为空', {icon: 2});$('#b_price').focus();return false;}
        if($('#j_price').val()==''){ layer.alert('技术年费不能为空', {icon: 2});$('#j_price').focus();return false;}
//        if($('#xinyong_price').val()==''){ layer.alert('信用额度不能为空', {icon: 2});$('#xinyong_price').focus();return false;}
//        if($('#dk_price').val()==''){ layer.alert('使用中贷款不能为空', {icon: 2});$('#dk_price').focus();return false;}
        if($('#weigui_log').val()==''){ layer.alert('违规记录不能为空', {icon: 2});$('#weigui_log').focus();return false;}
        if($('#dongtai_score').val()==''){ layer.alert('动态评分不能为空', {icon: 2});$('#dongtai_score').focus();return false;}
//        if($('#yingyee_img').val()==''){ layer.alert('请上传营业额图片', {icon: 2});$('#yingyee_img').focus();return false;}
//        if($('#yijileimu_img').val()==''){ layer.alert('请上传一级类目图片', {icon: 2});$('#yijileimu_img').focus();return false;}
//        if($('#lishikoufen_img').val()==''){ layer.alert('请上传历史扣分图片', {icon: 2});$('#lishikoufen_img').focus();return false;}
//        if($('#xuqiankaoke_img').val()==''){ layer.alert('请上传续签考核图片', {icon: 2});$('#xuqiankaoke_img').focus();return false;}
        if($(".papers:checked").length==0){ layer.alert('请勾选可提供证件', {icon: 2}); return false;}
//       if($('#address').val()==''){ layer.alert('店铺详细地址不能为空', {icon: 2});$('#address').focus();return false;}
        if($('#store_type').val()==0){ layer.alert('请选择店铺类型', {icon: 2}); return false;}
        if($('#brand_type').val()==0){ layer.alert('请选择商标类型', {icon: 2}); return false;}
        if($('#trade_type').val()==0){ layer.alert('请选择行业类型', {icon: 2}); return false;}
        if($('#area_type').val()==0){ layer.alert('请选择地区', {icon: 2}); return false;}
        if($('#price_type').val()==0){ layer.alert('请选择价格区间', {icon: 2}); return false;}
        if($('#label').val()==''){ layer.alert('标签不能为空', {icon: 2});$('#label').focus(); return false;}

        if($('#company_name').val()==''){ layer.alert('公司名称不能为空', {icon: 2}); return false;}
        if($('#company_reg_time').val()==''){ layer.alert('注册时间不能为空', {icon: 2}); return false;}
        if($('#reg_money').val()==''){ layer.alert('注册资金不能为空', {icon: 2}); return false;}
        if($('#company_legal_per').val()==''){ layer.alert('公司法人不能为空', {icon: 2}); return false;}
        if($('#taxpayer_qualification').val()==''){ layer.alert('纳税人资质不能为空', {icon: 2});return false;}
        if($('#annals_info').val()==''){ layer.alert('年报状态不能为空', {icon: 2}); return false;}
        if($('#shareholder_num').val()==''){ layer.alert('股东人数不能为空', {icon: 2}); return false;}

        ajax_submit_form(form_id,url);

    }





</script>